package app.texas.com.devilfishhouse.View.Fragment.mine.coupon;

import android.content.Context;
import android.support.v7.widget.RecyclerView;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ImageView;
import android.widget.TextView;

import com.universal_library.adapter.BaseAdapter;

import app.texas.com.devilfishhouse.Beans.mine.CouponBean;
import app.texas.com.devilfishhouse.R;

/**
 * Created by solin on 2018/7/21.
 */

public class CouponAdapter extends BaseAdapter<CouponBean, CouponAdapter.ViewHolder> {


    public CouponAdapter(Context mContext) {
        super(mContext);
    }

    @Override
    public ViewHolder onCreateViewHolder(ViewGroup parent, int viewType) {
        return new ViewHolder(mInflater.inflate(R.layout.item_coupon, parent, false));
    }

    @Override
    public void onBindViewHolder(ViewHolder holder, int position) {

    }

    public class ViewHolder extends RecyclerView.ViewHolder {
        private ImageView iv_itemIcon, iv_guoqi;
        private TextView tv_couponName,tv_couponHouse,tv_endTime,tv_couponMoney,tv_hint;

        public ViewHolder(View itemView) {
            super(itemView);
            iv_guoqi = itemView.findViewById(R.id.iv_guoqi);
            iv_itemIcon = itemView.findViewById(R.id.iv_itemIcon);
            tv_couponName = itemView.findViewById(R.id.tv_couponName);
            tv_couponHouse = itemView.findViewById(R.id.tv_couponHouse);
            tv_endTime = itemView.findViewById(R.id.tv_endTime);
            tv_couponMoney = itemView.findViewById(R.id.tv_couponMoney);
            tv_hint = itemView.findViewById(R.id.tv_hint);

        }
    }
}
